USBH Series and PX409-USB Labview Examples
=======================================

Included on this CD are versions of the Labview examples for Labview versions:

 - v8.6
 - v9
 - v10
 - v11
 - v12

These examples support all USBH sensors, as well as PX409-USB sensors.

These examples are meant to be a starting point for integrating Omega USBH
sensors into your Labview project.  It is the responsibilty of the user to use
the examples as a guide, modifying as necessary to fit the application.  As
customers likely have vastly differing applications, Omega Engineering cannot
support problems with the implemention of the examples.   

Care must be taken by the end user to implement the examples in a robust manner.
This includes proper use of error handling in the event that your Labview
implimentation were to crash.

Unzip the folder with the appropriate version of your Labview version in its
entirety into a common directory accessable by your project.  

The three Examples are intended to be run stand alone. If run in parallel,
potential COM port conflicts could occur.  Be sure to follow these rules:
 1. Before running, select the correct COM port for the device you are
    connecting.  If your device is not present in the drop down menu, press
    "Refresh" in the drop down menu.    
 2. Use the "Run" button in Labview, not the "Run Continously" button.
 3. Don't use the Stop Button in the Labview Toolbar.  Only use the
    Stop button in the body of "Example - Initializing and Configuring.vi"
    and "Example - Streaming Data.vi".  Using this stop button properly
    stops the sensor's streaming data (if applicable) and closes the COM 
    port. For "Example - Single Read.vi", Labview will stop 
    automatically after the single read occurs.
 4. COM ports cannot be changed while the Example is running.

General Notes: 
 1. If you are using Windows XP, do not connect the transducer to the USB port
    of the PC until the USB drivers have been installed.  These drivers
    can be installed by one of two methods:
    a. Install the USBH Software Application, which will automatically
          install the drivers.
    b. Visit "http://www.ftdichip.com/Drivers/D2XX.htm" and run the "setup
          executable" under the comments section for your version of Windows.
    For all versions of Windows that are newer than XP, you may plug in the 
    transducer to your USB port, and the correct driver should automatically
    be found.
 2. If you are having difficulty with your transducer connecting, it is
    recommended to:
    a. Unplug your transducer, visit "http://www.ftdichip.com/Drivers/D2XX.htm"
       and run the "setup executable" under the comments section for your 
       version of Windows.
    b. Verify that you can see the transducer connected to the COM port in
       Windows Device Manager.
    c. Verify that no other program is trying to access the particular
       COM port your transducer is connected to.
    d. Install the USBH Application Software, and verify if the transducer
       is being recognized.
    e. Connect the transducer directly to the computer's USB port.  USB
       Hubs could possibly introduce intermittant problems. 
    f. If the transducer is connecting to the computer with a high COM port
       number, reconnect at a lower COM port number (under 50). 

Notes for USBH transducers: 
 1. The Labview examples natively support PX409-USBH transducers (Unit ID: 
    USBPX2). In order to use other USBH Products, you must substitute the 
    appropriate Unit ID in the "Check for Device.VI" block diagram.  The Unit 
    ID may be found by connecting to the transducer with a Terminal 
    program, entering the ENQ command, and observing the text in the 
    "UNIT ID=" field.
 2. USBH transducers may not respond immediately after plugging in to the USB
    port of the PC.  This is because of a time delay for USB enumeration,
    and also the USBH transducer has an approximately 6 second boot delay 
    (occurs in parallel with the USB enumeration). 
 3. Note that USBH transducers have a streaming mode, which is started by the
    PC command and stopped by the PS command (see the document on this CD: 
    "Omega USBH Transducer Command Reference RevB A025002.doc" for details 
    of these commands).  Notice that the "Check for Device.VI" VI
    issues the PS command before attempting to communicate with 
    the transducer otherwise.  This is to ensure that 
    the transducer is not in the data streaming mode (PC command),
    in which the transducer will not respond to any commmand besides
    the PS command (stop streaming).  For robost operation, do not remove
    the series of commands initially sent to the transducer in "Check for 
    Device.VI". It is also recommended that, before exiting any
    executable created by the user with Labview, that the "PS" command
    be issued before exiting the executable. This causes the transducer to
    stop sending readings to the computer.  
 4. The USBH transducers require a baud rate of 115,200bps, 8 data bits, no
    parity, 1 stop bit, no flow control.  Keep this in mind if deviating
    from the Examples.

Note for PX409-USB transducers:
 1. PX409-USB transducers do not support the Boxcar Filter, or the streaming 
    function.  Therefore, for PX409USB, "Example - Streaming Data.vi" does
    not support the PX409-USB transducer. Also, in "Initializing and
    Configuring.vi", the "Sample Rate Out" and "Samples to Average" fields 
    under the "Config Info" area are not supported.
 2. This transducer requires a baud rate of 9600bps, 8 data bits, no
    parity, 1 stop bit, no flow control.  Keep this in mind if deviating
    from the Examples.


